<?php

namespace app\admin\model;

use think\Model;

class ShopOrderModel extends Model
{
    protected $pk = 'id';
    // 设置当前模型对应的完整数据表名称
    protected $table = 'tp_shop_order';
    protected $autoWriteTimestamp = 'datetime';
    public function shops()
    {
        return $this->hasOne('Shops','id','shops_id');
    }
    public function user()
    {
        return $this->hasOne('UsersModel','id','user_id');
    }
}
